package com.party.business.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.party.business.mapper.PowerbuildOrgMapper;
import com.party.business.domain.PowerbuildOrg;
import com.party.business.service.IPowerbuildOrgService;

/**
 * 力量建设-业务机构Service业务层处理
 *
 * @author ruoyi
 * @date 2025-06-24
 */
@Service
public class PowerbuildOrgServiceImpl extends ServiceImpl<PowerbuildOrgMapper,PowerbuildOrg>  implements IPowerbuildOrgService
{
    @Autowired
    private PowerbuildOrgMapper powerbuildOrgMapper;

    /**
     * 查询力量建设-业务机构
     *
     * @param id 力量建设-业务机构主键
     * @return 力量建设-业务机构
     */
    @Override
    public PowerbuildOrg selectPowerbuildOrgById(Long id)
    {
        return powerbuildOrgMapper.selectPowerbuildOrgById(id);
    }

    /**
     * 查询力量建设-业务机构列表
     *
     * @param powerbuildOrg 力量建设-业务机构
     * @return 力量建设-业务机构
     */
    @Override
    public List<PowerbuildOrg> selectPowerbuildOrgList(PowerbuildOrg powerbuildOrg)
    {
        return powerbuildOrgMapper.selectPowerbuildOrgList(powerbuildOrg);
    }

    /**
     * 新增力量建设-业务机构
     *
     * @param powerbuildOrg 力量建设-业务机构
     * @return 结果
     */
    @Override
    public int insertPowerbuildOrg(PowerbuildOrg powerbuildOrg)
    {
            return powerbuildOrgMapper.insertPowerbuildOrg(powerbuildOrg);
    }

    /**
     * 修改力量建设-业务机构
     *
     * @param powerbuildOrg 力量建设-业务机构
     * @return 结果
     */
    @Override
    public int updatePowerbuildOrg(PowerbuildOrg powerbuildOrg)
    {
        return powerbuildOrgMapper.updatePowerbuildOrg(powerbuildOrg);
    }

    /**
     * 批量删除力量建设-业务机构
     *
     * @param ids 需要删除的力量建设-业务机构主键
     * @return 结果
     */
    @Override
    public int deletePowerbuildOrgByIds(Long[] ids)
    {
        return powerbuildOrgMapper.deletePowerbuildOrgByIds(ids);
    }

    /**
     * 删除力量建设-业务机构信息
     *
     * @param id 力量建设-业务机构主键
     * @return 结果
     */
    @Override
    public int deletePowerbuildOrgById(Long id)
    {
        return powerbuildOrgMapper.deletePowerbuildOrgById(id);
    }
}
